<html><head><title>FindString</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">FindString()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Position = <font color="#3A3966"><b>FindString</b></font>(String$, StringToFind$ [, StartPosition [, Mode]])</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Find the 'StringToFind$' within the given 'String$'. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>String$</i></td>
<td width="90%"> 
The string to use. 

</td></tr>
<tr><td><i>StringToFind$</i></td>
<td> 
The string to find. 

</td></tr>
<tr><td><i>StartPosition (optional)</i></td>
<td> 
The start position to begin the search. The first valid character index is 1. 
If this parameter isn't specified, the whole string is searched. 

</td></tr>
<tr><td><i>Mode (optional)</i></td>
<td> 
It can be one of the following values: 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_String_CaseSensitive</font>: case sensitive search (a=a) (default).
  <font color="#924B72">#PB_String_NoCase</font>       : case insensitive search (A=a).
</font></pre>

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

Returns the position (in character) of the string to find, or zero is the string isn't found. The first character index is 1. 

<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#3A3966">Debug</font></b> <font color="#3A3966">FindString</font>(&quot;PureBasic&quot;, &quot;Bas&quot;) <font color="#3A3966">; will display 5</font>
</font></pre>

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=escapestring.html>EscapeString()</a> - <a href="index.html">String Index</a> - <a href="hex.html">Hex()</a> -><br><br>

</body></html>